<template>
	<div>
		<router-view />
	</div>
</template>
<script>
import { getUserCookie } from "@/common/UserCookie";
export default {
	created() {
		/**
		 * 刷新菜单数据丢失，原因，菜单是动态路由动态加载
		 */
		let user = getUserCookie()
		if (user && user.roleId) {
			this.$store.dispatch('saveMenu', user.roleId)
		}
	}
}
</script>
<style>
@import url('@/assets/css/base.css');
</style>
